package com.example.comment_oa.pojos;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

/**
 * 
 * @TableName draw_goods
 */
@TableName(value ="draw_goods")
@Data
public class DrawGoods implements Serializable {
    /**
     * 领取id
     */
    @TableId(value = "draw_id")
    private Integer drawId;

    /**
     * 领取物品编号
     */
    @TableField(value = "draw_goods_no")
    private String drawGoodsNo;

    /**
     * 仓库物品id
     */
    @TableField(value = "draw_goods_id")
    private String drawGoodsId;

    /**
     * 领取物品名称
     */
    @TableField(value = "draw_goods_name")
    private String drawGoodsName;

    /**
     * 领取物品金额
     */
    @TableField(value = "draw_goods_sum")
    private Double drawGoodsSum;

    /**
     * 领取物品数量
     */
    @TableField(value = "draw_goods_amount")
    private String drawGoodsAmount;

    /**
     * 领取物品是否追回0是1否
     */
    @TableField(value = "draw_goods_recover")
    private String drawGoodsRecover;

    /**
     * 领取模板部门id
     */
    @TableField(value = "draw_dept_id")
    private String drawDeptId;

    /**
     * 领取模板部门名称
     */
    @TableField(value = "draw_dept_name")
    private String drawDeptName;

    /**
     * 领取模板职位id
     */
    @TableField(value = "draw_job_id")
    private String drawJobId;

    /**
     * 领取模板职位名称
     */
    @TableField(value = "draw_job_name")
    private String drawJobName;

    /**
     * 领取物品生成时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd",timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @TableField(value = "draw_generate_time")
    private Date drawGenerateTime;

    /**
     * 领取时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd",timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @TableField(value = "draw_generate_time")
    private Date drawTime;

    /**
     * 领取人id
     */
    @TableField(value = "draw_name_id")
    private String drawNameId;

    /**
     * 领取人
     */
    @TableField(value = "draw_name")
    private String drawName;

    /**
     * 操作人id
     */
    @TableField(value = "operator_id")
    private String operatorId;

    /**
     * 操作人
     */
    @TableField(value = "operator_name")
    private String operatorName;


    /**
     * 领取人联系方式
     */
    @TableField(value = "draw_name_contact")
    private String drawNameContact;

    /**
     * 领取状态
     */
    @TableField(value = "draw_state")
    private String drawState;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}